using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace FileManager.Models
{
    public class ChatObject
    {
        [Key]
        public int Id { get; set; }
        
        [Required]
        public string Name { get; set; }
        
        public string WeChatId { get; set; }
        
        public bool IsGroup { get; set; }
        
        // 导航属性
        public virtual ICollection<FileChatRelation> FileChatRelations { get; set; }
    }
}